<?php


define('G_BIN_CHECK_INCLUDE', 1);


include('common.inc.php');

define('G_OUTPUT_CHARSET', 'UTF-8');
outputJSON(array('error'=>1, 'message'=>'xxfda'), true, false);


die;
define('UPLOAD_DONT_OUTPUT', true);

$_GET['field'] = 'imgFile';	//
$_GET['permanent'] = '1';

include '../absPath.php';

$rs = include G_HTDOCS_ABS_PATH."/upload/imgUpload.php";

outputJSON(array('error'=>0, 'url'=>$rs['URL']['original'][0], 'img_item_id'=>$rs['img_item_id']));